addspriteactiongroup
Adds a sprite action group, sagname, to a ribbon page group in the Compose user interface. addspriteactiongroup is only available in the Compose GUI.
Syntax
addspriteactiongroup(rbnname, rpgname, sagname, saglabel, labeloffset, groupWidth)
Inputs
- rbnname
- The name of the ribbon page.
- rpgname
- The name of the ribbon page group.
- sagname
- The name of the sprite action group.
- saglabel
- The label of the sprite action group.
- labeloffset
- The offset value of the label.
- groupWidth
- The width of the action group.
Outputs
- uiSpriteActionGroup
- The handle to the sprite action group.
Examples
addribbonpagegroup('Test','Indentation');
addspriteactiongroup('Test', 'Indentation', 'TestSG', 'UnIndent',0,80);
movesprite('TestSG', 0, -5);
addspriteaction('TestSG', 'TestActionLabel','TestAction', 'HandleUnIndent', 'UnIndent-80.png','','',true);
function HandleUnIndent()
disp('UnIndent is handled');
end